<!--
 * @Author: your name
 * @Date: 2021-02-20 16:17:38
 * @LastEditTime: 2021-02-20 18:45:14
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \demoe:\前端开发学习\hmtt\hm63-hmtt-wsh\src\views\home\home.vue
-->
<template>
  <div class="home">
    <keep-alive include="main">
      <router-view></router-view>
    </keep-alive>
    <van-tabbar
      class="tabbar"
      v-model="active"
      route
      placeholder
      inactive-color="#666666"
      active-color="#3296fa"
      v-if="this.$route.meta.needTab"
    >
      <van-tabbar-item to="/home/main" icon="wap-home-o">主页</van-tabbar-item>
      <van-tabbar-item to="/home/my" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data () {
    return {
      active: 0
    }
  }
}
</script>
<style lang="less" scoped>
.home {
  .tabbar {
    .txt {
      font-size: 12px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: center;
      line-height: 14px;
      letter-spacing: 0px;
    }
  }
}
</style>
